<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			.active{
				background-color: aqua;
			}
			.text-danger{
				color: red;
			}
			
		</style>
	</head>
	<script src="../vue.js" type="text/javascript" charset="utf-8"></script>
	<body>
		<div id="app">
			<div :class="[activeClass, errorClass]">
				123
			</div>
			<!-- 内联样式 绑定 -->
			<div :style="{color:activeColor,fontSize:fontSize + 'px'}">
			内联样式绑定
			</div>
			<div :style="{ display: ['-webkit-box', '-ms-flexbox', 'flex'] }">
				keep pppppppppp
			</div>
			<!-- 内联样式 END -->
		</div>
	</body>
	<script type="text/javascript">
		const vm = new Vue({
			el: '#app',
			data:{
				activeClass: 'active',
				errorClass: 'text-danger',
				activeColor: '#ccc',
				fontSize:20,
			}
		})
	</script>
	
</html>
